import type * as T from './type'
import http from '@/utils/http'

export type * from './type'

/**
 * 查询在线用户列表
 * @param query
 */
export function pageOnlineUser(query: T.OnlineUserPageQuery) {
  return http.post<PageRes<T.OnlineUserResp[]>>(`/monitor/online/page`, query)
}

/**
 * 强退在线用户
 * @param token
 */
export function kickout(token: string) {
  return http.del(`/monitor/online/kickout/${token}`)
}
